const router = require('koa-router')()
const MsgRobotController = require('../controller/msgRobot')
const msgRobot = new MsgRobotController()

router.get('/schedules', msgRobot.findAll())
router.post('/schedules', msgRobot.create())
router.put('/schedules/:id', msgRobot.update())
router.delete('/schedules/:id', msgRobot.deleteById())

module.exports = router
